package com.wnm.service;

import java.util.List;

import com.wnm.pojo.Order;
import com.wnm.pojo.OrderItem;
import com.wnm.pojo.PageBean;

public interface OrderService {

	public void add(Order order, List<OrderItem> orderItems) ;

	public int getNumsByUserId(int userid);

	public int getOrderByStatus(int userid,String status);

	public List<Order> getOrdersByuserid(int userid);

	public PageBean<Order> findPageByuserid(int id, int currentpage);

	public Order getById(int orderid);

}
